package hong.jun.funure;

import hong.jun.lock.Data;
import hong.jun.task.ThreadTask;

/**
 * 说明:战斗任务线程
 * Created on 2023/10/19 15:12
 *
 * @author yanghongjun <1737619387@qq.com>
 */
public class ThreadFunureTask extends ThreadTask {

    private final Data data;

    public ThreadFunureTask(Data data) {
        super();
        this.data = data;
    }

    /**
     * @Description:
     * @Param: []
     * @return: void
     * @Author: yanghongjun
     * @Date: 2023/10/19
     */
    @Override
    protected void action() {
        data.setCount(10);
    }

}
